#include<bits/stdc++.h>
using namespace std;

int a[105][105];
int nums[105], idx[105];

signed main() {
    int n;
    cin >> n;
    for(int i = 1; i <= n; i++) {
        cin >> nums[i];
    }

    int k = 1, pos = 1;
    while(1) {
    	if(idx[k] < 10 * nums[i])
        a[k][++idx[k]] = pos++;
        
		k++;
        if(k > n)k = 1;
    }
    return 0;
}

